<template>
  <Button  @click="handleSubmit()">getHello</Button>
</template>

<script>

  /*import Router from 'vue-router'*/
  /*import OtherRounter from "../router/OtherRouter"*/
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  methods: {
    handleSubmit() {/*
      this.$router = new Router(OtherRounter);*/
      this.axios.get('api/getMenus').then(function (response) {
        alert(response.data);
      } , function (response){
        console.log("获取信息失败");
        console.log(response);
      });
    }
  }
}
</script>

